package x.ovo.wechat.bot.common.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * API 网址
 *
 * @author ovo, created by 2024/04/21
 */
@Getter
@RequiredArgsConstructor
public enum ApiURL {
    IMAGE("{}/webwxgetmsgimg?msgid={}&skey={}", ".jpg", "images"),
    AVATAR("{}/webwxgetheadimg?username={}&skey={}", ".jpg", "avatar"),
    ICON("{}/webwxgeticon?username={}&skey={}", ".jpg", "icons"),
    VOICE("{}/webwxgetvoice?msgid={}&skey={}", ".mp3", "voice"),
    VIDEO("{}/webwxgetvideo?msgid={}&skey={}", ".mp4", "video");

    private final String url;
    private final String suffix;
    private final String dir;
}
